#ifndef __MAP_INDEX_INCLUDED
#define __MAP_INDEX_INCLUDED

#include "file_collection.h"
#include "map_loader.h"
#include "map_projection.h"

/*--------------------------------------------------------------------------*/
class map_index 
{
	public:
		map_index(char* path);
		~map_index();
		
		int		maps_for_ll(double lat, double lon, int** indexes);
		char*	map_filename(int id);
		int		maps_amount();
		double	mpp(int id);

	private:
		int		ll_inside_map(int id, double lat, double lon);
		
		
	private:
		file_collection*	maps_collection;
		map_info**			maps;
		map_projection**	projections;
		
};

#endif